package com.aidex.biz.utils;

import com.aidex.common.utils.StringUtils;
import com.aidex.framework.cache.ConfigUtils;

public class CityUtils {


    public static String cityRules(String city) {
        // 获取系统参数 需要过滤的省份
        String str = ConfigUtils.getConfigValueByKey("cityRules.oldStr");
        if (StringUtils.isNotEmpty(str)) {
            return city.replace("省", "").replace(str, "").replace("市", "").replace("—", "");
        }
        return city;
    }

    public static void main(String[] args) throws Exception {

    }
}
